cmake_minimum_required(VERSION 3.1.3)
project(all-test)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/message_server)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/user_server)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/file_server)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/speech_server)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/transmit_server)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/friend_server)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/gateway_server)
set(CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_BINARY_DIR})

# 在ChatRoomServer目录下构建build
# 然后cmake.. 
# 成功后直接make
# 最后make install 所有可执行文件都在bin中了